﻿#include <iostream>
using namespace std;

int main()
{
	int a = 3;                   //声明整形变量a
	int& ra = a;               //创建引用ra，ra是a的别名,引用必须初始化
	int* const rb = &a;   //声明指针常量rb,指向变量a
	cout << "a的地址是：" << &a << ",a的值是：" << a << endl;
	cout << "ra的地址是：" << &ra << ",ra的值是：" << ra << endl;
}

